package com.hrpmar.pojo;


import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 出库主表(销售)
 */
public class Outstorage {

  private Integer osId;                   //出库主表序号
  private String osNum;                   //出库编号
  private Integer osLdm;                  //领药人
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date osLeadtime;                //领取时间
  private String osOperator;             //操作人员
  private String osRemark;                //备注

  private Medicper workerLdm;           //(领药人)人员对象
  private Worker workerOperator;      //(操作人员)人员对象

  public Integer getOsId() {
    return osId;
  }

  public void setOsId(Integer osId) {
    this.osId = osId;
  }

  public String getOsNum() {
    return osNum;
  }

  public void setOsNum(String osNum) {
    this.osNum = osNum;
  }

  public Integer getOsLdm() {
    return osLdm;
  }

  public void setOsLdm(Integer osLdm) {
    this.osLdm = osLdm;
  }

  public Date getOsLeadtime() {
    return osLeadtime;
  }

  public void setOsLeadtime(Date osLeadtime) {
    this.osLeadtime = osLeadtime;
  }

  public String getOsOperator() {
    return osOperator;
  }

  public void setOsOperator(String osOperator) {
    this.osOperator = osOperator;
  }

  public String getOsRemark() {
    return osRemark;
  }

  public void setOsRemark(String osRemark) {
    this.osRemark = osRemark;
  }

  public Medicper getWorkerLdm() {
    return workerLdm;
  }

  public void setWorkerLdm(Medicper workerLdm) {
    this.workerLdm = workerLdm;
  }

  public Worker getWorkerOperator() {
    return workerOperator;
  }

  public void setWorkerOperator(Worker workerOperator) {
    this.workerOperator = workerOperator;
  }

  @Override
  public String toString() {
    return "Outstorage{" +
            "osId=" + osId +
            ", osNum='" + osNum + '\'' +
            ", osLdm=" + osLdm +
            ", osLeadtime=" + osLeadtime +
            ", osOperator=" + osOperator +
            ", osRemark='" + osRemark + '\'' +
            ", workerLdm=" + workerLdm +
            ", workerOperator=" + workerOperator +
            '}';
  }
}
